import request from '@/utils/request'

export function getExpressCompanyList (params:any) {
    return request({
        url: 'store.expressCompany/list',
        method: 'GET',
        params
    })
}

export function getExpressCompanySelect () {
    return request({
        url: 'store.expressCompany/select',
        method: 'GET'
    })
}

export function createExpressCompany (data:any) {
    return request({
        url: 'store.expressCompany/create',
        method: 'POST',
        data
    })
}
export function updateExpressCompany (data:any) {
    return request({
        url: `store.expressCompany/update`,
        method: 'PUT',
        data
    })
}
export function updateStatusExpressCompany (data:{id:number|string,status:number|string}) {
    return request({
        url: `store.expressCompany/status`,
        method: 'PUT',
        data
    })
}

export function delExpressCompany (data:{id:number|string}) {
    return request({
        url: `store.expressCompany/delete`,
        method: 'DELETE',
        data
    })
}

export function getExpressCompanyDetail (params:{id:number|string}) {
    return request({
        url: `store.expressCompany/detail`,
        method: 'GET',
        params
    })
}